import axios from '@/utils/request'

/**
 * 查询劳务单位信息
 */
export function labourOrgQuery(data) {
    return axios({
      url:"/v1/labourOrg/query",
      method:"post",
      data
    })
}

/**
 * 获取劳务单位信息
 */
export function labourOrgGet(params) {
  return axios({
    url:"/v1/labourOrg/get",
    method:"get",
    params
  })
}

/**
 * 添加劳务单位信息
 */
export function labourOrgAdd(data) {
    return axios({
      url:"/v1/labourOrg/add",
      method:"post",
      data
    })
}

/**
 * 更新劳务单位信息
 */
export function labourOrgUpdate(data) {
    return axios({
      url:"/v1/labourOrg/update",
      method:"post",
      data
    })
}

/**
 * 删除劳务单位信息
 */
export function labourOrgDelete(params) {
    return axios({
      url:"/v1/labourOrg/delete",
      method:"get",
      params
    })
}

/**
 * 添加关联信息
 */
export function contactAdd(data) {
  return axios({
    url:"/v1/labourOrgTeam/add",
    method:"post",
    data
  })
}

/**
 * 取消关联
 */
export function contactDelete(data) {
  return axios({
    url:"/v1/labourOrgTeam/delete",
    method:"post",
    data
  })
}

/**
 * 获取班组信息
 */
export function teamGet(data) {
  return axios({
    url:"/v1/codeDict/query",
    method:"post",
    data
  })
}

/**
 * 获取班组负责人信息
 */
export function teamChargeGet(data) {
  return axios({
    url:"/v1/orgPerson/queryByDepartmentCode",
    method:"post",
    data
  })
}

/**
 * 设置班组负责人
 */
export function teamChargeSet(data) {
  return axios({
    url:"/v1/codeDict/update",
    method:"post",
    data
  })
}


